﻿@model HotelManager.DataAccess.Model.BookingRoomInfo

<!--right sidebar-->
    <aside class="right-sidebar">
        <!--Booking details-->
        <article class="booking-details clearfix">
            <h1>@Model.HotelName
                
                @if (Model.Stars != null)
                {
                    <span class="stars">
                        @for (int i = 0; i < Model.Stars; i++)
                        {
                            <img src="~/Images/star.png" alt="">
                        }
                    </span>
                } 
							
            </h1>
            <span class="address">@Model.City, @Model.Country</span>
            @if (Model.Stars != null)
            {
                var rate = Model.Stars * 2;
                <span class="rating">@rate /10</span>
            }
            
            <div class="booking-info">
                <h6>Room Type</h6>
                <p>@Model.RoomTypeName</p>
                <h6>Check-in Date</h6>
                <p>@Model.From.ToShortDateString()</p>
                <h6>Check-out Date</h6>
                <p>@Model.To.ToShortDateString()</p>
            </div>
            <div class="price">
                <p class="total">Price Per Room:  $ @Model.Price</p>
                <p>VAT (20%) included</p>
            </div>
        </article>
        <!--//Booking details-->

        <!--Need Help Booking?-->
        <article class="default clearfix">
            <h2>Need Help Booking?</h2>
            <p>
                Call our customer services team on the number below to speak to
                one of our advisors who will help you with all of your holiday needs.
            </p>
            <p class="number">1- 555 - 555 - 555</p>
        </article>
        <!--//Need Help Booking?-->
    </aside>
    <!--//right sidebar-->